
<?php $this->JQuery()->disable();?>
<
<div  id="backward" style="cursor:pointer;color:#EAF5F7;background-color:#4297D7;margin-left:245px;width:990px;width:990px;padding:3px;border-radius:3px;border:1px solid #EEEEEE">
    <span id="buttonBack"  style="padding:0" >Назад</span>
    <span id="title" style="padding:0 10px;font-weight:bold;font-size:12px;color:#555555">Комментарии к статье: <strong style="color:#FFFFFF"><?=$this->title;?></strong></span>
</div>
<div id="comment-container" class="ui-widget" style="float:left;" data-artid="<?=$this->artid;?>">

    <table id="comment-container">
        <thead>
        <tr>
            <th class="ui-widget-header">Автор</th>
            <th class="ui-widget-header">Комментарий</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($this->comments as $c):?>
            <tr id="<?=$c['id']?>" class="ui-widget-content">
                <td id="head_<?=$c['id']?>" class="ui-widget-content " style="vertical-align:top;width:400px">
                    <img src="<?=$c['avatar']==true ? $c['avatar'] : 'images/avatars/noavatar92.png'?>" style="vertical-align:middle; padding:5px;height:50px">
                    <br/><span id="name"><?=$this->escape($c['name'])?></span> <br/>
                    <img src="/images/email.png" width="16" style="vertical-align:middle; padding-right:0">
                    <a href="mailto:<?=$this->escape($c['email'])?>" title="Отправить письмо" style="color:#2441F5;padding-left:0;"><?=$this->escape($c['email'])?></a>
                    <br/><span id="created_dt">Дата отправки:<span><?=$this->escape($c['created_dt'])?></span></span><br/>
                    <button id="editBut_<?=$this->escape($c['id'])?>" class="editbutton" title="Редактировать">Редактировать</button>
                    <button id="button-visibility" class="button-visibility" title="<?=$this->escape($c['visibility'])== 1 ? 'Опубликован' : 'В черновике' ?>"><?=$this->escape($c['visibility'])== 1 ? 'Опубликован' : 'В черновике' ?></button>
                    <button id="delbutton" class="delbutton" title="Удалить">Удалить</button>
                </td>

                <td id="comment_<?=$this->escape($c['id'])?>" class="ui-widget-content" style="vertical-align:top;font-size:10px;"><p id="tdcomment" style="font-size:10px;"><?=$this->escape($c['blog_comment'])?></p></td>
            </tr>

        <?php endforeach;?>
        </tbody>
    </table>
    <div id="commpagination" style="float:left;"></div>
</div>

<div id="commpages_<?=$this->escape($this->artid);?>" data-pagescount="<?=$this->escape($this->pages);?>" style="margin:30px;float:right;width:auto;height:15px;display:none"></div>